﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QMouseEvent>
#include<QUdpSocket>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
private:
    void loadStyleStyle();
    void initControl();
private slots:
    void dealMsg();
private:
    Ui::Widget *ui;
    QPoint m_point;
    QUdpSocket*m_sender;
};
#endif // WIDGET_H
